package licenciaperumovil.activity;


import licenciaperumovil.activity.PortadaActivity;
import licenciaperumovil.activity.MenuActivity;
import com.example.licenciaperumovil.R;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class PortadaActivity extends Activity{
	  private final int SPLASH_DISPLAY_LENGTH = 2000;
	 @Override
	 public void onCreate(Bundle savedInstanceState) {
	  super.onCreate(savedInstanceState);
	  setContentView(R.layout.portada);
	  new Handler().postDelayed(new Runnable() {
	   public void run() {
	    Intent intent = new Intent(PortadaActivity.this, MenuActivity.class);
	    startActivity(intent);
	    /* Destruye esta actividad*/
	    finish();
	   };
	  }, SPLASH_DISPLAY_LENGTH);
	 }
	}
